Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Numerics.​ILogarithmicFunctions<​TSelf>

Assembly: System.Runtime

Implemented Interfaces

Defines support for logarithmic functions.

Methods

static TSelf
Log​(TSelf x)
Computes the natural ( <c>base-E</c> logarithm of a value.
Returns The natural logarithm of <paramref name="x" /> .
x The value whose natural logarithm is to be computed.
static TSelf
Log​(TSelf x, TSelf newBase)
Computes the logarithm of a value in the specified base.
Returns The base- <paramref name="newBase" /> logarithm of <paramref name="x" /> .
x The value whose logarithm is to be computed.
newBase The base in which the logarithm is to be computed.
static TSelf
Log10​(TSelf x)
Computes the base-10 logarithm of a value.
Returns The base-10 logarithm of <paramref name="x" /> .
x The value whose base-10 logarithm is to be computed.
static TSelf
Log10P1​(TSelf x)
Computes the base-10 logarithm of a value plus one.
Returns <c>log<sub>10</sub>(<paramref name="x" /> + 1)</c>
x The value to which one is added before computing the base-10 logarithm.
static TSelf
Log2​(TSelf x)
Computes the base-2 logarithm of a value.
Returns The base-2 logarithm of <paramref name="x" /> .
x The value whose base-2 logarithm is to be computed.
static TSelf
Log2P1​(TSelf x)
Computes the base-2 logarithm of a value plus one.
Returns <c>log<sub>2</sub>(<paramref name="x" /> + 1)</c>
x The value to which one is added before computing the base-2 logarithm.
static TSelf
LogP1​(TSelf x)
Computes the natural ( <c>base-E</c> ) logarithm of a value plus one.
Returns <c>log<sub>e</sub>(<paramref name="x" /> + 1)</c>
x The value to which one is added before computing the natural logarithm.